<template>
<span class="vp-tag">2.3.9</span>
<p>使用 <code>inactive-action-icon</code> 和 <code>active-action-icon</code> 属性来添加图标。</p>
  <el-switch
    v-model="value1"
    :active-action-icon="View"
    :inactive-action-icon="Hide"
  />
</template>

<script setup lang="ts">
import { ref } from 'vue'
import { Hide, View } from '@element-plus/icons-vue'

const value1 = ref(true)
</script>

<style scoped>
@import '../../assets/elementPlusDemo.css'
</style>